package com.yskj.otms.controller;

import com.yskj.otms.services.IAiFeedbackServices;
import net.sf.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2019/1/9.
 */
@Controller
@RequestMapping("/aiFeedback")
public class AiFeedbackController {
    private static Logger logger = LoggerFactory.getLogger(AiFeedbackController.class);
    
    @Autowired
    private IAiFeedbackServices iAiFeedbackServices;
    
    @RequestMapping("/selectAiFeedbackInfo")
    @ResponseBody
    private JSONObject selectAiFeedbackInfo(HttpServletRequest request)throws Exception{
        logger.info("AiFeedbackController selectAiFeedbackInfo start");
        JSONObject feedbackObj = new JSONObject();
        try {
            feedbackObj = iAiFeedbackServices.selectAiFeedbackInfo(request);
        } catch (Exception e) {
            logger.error("AiFeedbackController selectAiFeedbackInfo Exception", e);
            feedbackObj.put("SUCCESS", false);
            feedbackObj.put("MSG","查询失败！");
        }
        return feedbackObj;
    }
}
